home *** CD-ROM | disk | FTP | other *** search
/ Champak 33 / Volume 33 - JOGO DISK .iso / Games / santas_deed.swf / scripts / DefineSprite_367 / frame_1 / DoAction.as
Text File  |  2007-01-15  |  6KB  |  211 lines

  1. var ┬º\x01┬º = 18;
  2. while(true)
  3. {
  4.    if(eval("\x01") == 18)
  5.    {
  6.       set("\x01",eval("\x01") + 579);
  7.       ┬º┬ºpush(true);
  8.    }
  9.    else if(eval("\x01") == 62)
  10.    {
  11.       set("\x01",eval("\x01") + 511);
  12.       ┬º┬ºpush(true);
  13.    }
  14.    else if(eval("\x01") == 235)
  15.    {
  16.       set("\x01",eval("\x01") - 172);
  17.       ┬º┬ºpush(true);
  18.    }
  19.    else
  20.    {
  21.       if(eval("\x01") == 591)
  22.       {
  23.          set("\x01",eval("\x01") - 356);
  24.          ┬º┬ºenumerate(┬º┬ºpop() >> (┬º┬ºpop() >>> (┬º┬ºpop() ^ ┬º┬ºpop())));
  25.          break;
  26.       }
  27.       if(eval("\x01") == 748)
  28.       {
  29.          set("\x01",eval("\x01") - 551);
  30.          if(┬º┬ºpop())
  31.          {
  32.             set("\x01",eval("\x01") + 733);
  33.          }
  34.       }
  35.       else if(eval("\x01") == 63)
  36.       {
  37.          set("\x01",eval("\x01") + 512);
  38.          if(┬º┬ºpop())
  39.          {
  40.             set("\x01",eval("\x01") + 360);
  41.          }
  42.       }
  43.       else if(eval("\x01") == 597)
  44.       {
  45.          set("\x01",eval("\x01") - 6);
  46.          if(┬º┬ºpop())
  47.          {
  48.             set("\x01",eval("\x01") - 356);
  49.          }
  50.       }
  51.       else
  52.       {
  53.          if(eval("\x01") == 197)
  54.          {
  55.             set("\x01",eval("\x01") + 733);
  56.             break;
  57.          }
  58.          if(eval("\x01") == 575)
  59.          {
  60.             set("\x01",eval("\x01") + 360);
  61.             ┬º┬ºpush(┬º┬ºpop() add ┬º┬ºpop());
  62.             break;
  63.          }
  64.          if(eval("\x01") == 930)
  65.          {
  66.             set("\x01",eval("\x01") - 104);
  67.             game1_txt.embedFonts = true;
  68.             game1_txt.setNewTextFormat(_global.FORMAT01);
  69.             game2_txt.embedFonts = true;
  70.             game2_txt.setNewTextFormat(_global.FORMAT01);
  71.             game3_txt.embedFonts = true;
  72.             game3_txt.setNewTextFormat(_global.FORMAT01);
  73.             game4_txt.embedFonts = true;
  74.             game4_txt.setNewTextFormat(_global.FORMAT01);
  75.             game5_txt.embedFonts = true;
  76.             game5_txt.setNewTextFormat(_global.FORMAT01);
  77.             LABELS = [game1_txt,game2_txt,game3_txt,game4_txt,game5_txt];
  78.             ZONES = [zone1_btn,zone2_btn,zone3_btn,zone4_btn,zone5_btn];
  79.             SELECTED = 1;
  80.             C = _global.GAMES.length;
  81.             i = 0;
  82.             while(i < 5)
  83.             {
  84.                if(i > C - 1)
  85.                {
  86.                   LABELS[i].text = "";
  87.                   ZONES[i]._visible = false;
  88.                }
  89.                else
  90.                {
  91.                   LABELS[i].text = _global.GAMES[i].PLAYERNAME;
  92.                }
  93.                i++;
  94.             }
  95.             zone1_btn.onRelease = function()
  96.             {
  97.                _global.JUKEBOX.playSound1("scroll20");
  98.                if(C < 1)
  99.                {
  100.                   return undefined;
  101.                }
  102.                SELECTED = 1;
  103.                icon_mc._y = -115;
  104.                selection_mc._y = 0;
  105.             };
  106.             zone2_btn.onRelease = function()
  107.             {
  108.                _global.JUKEBOX.playSound1("scroll20");
  109.                if(C < 2)
  110.                {
  111.                   return undefined;
  112.                }
  113.                SELECTED = 2;
  114.                icon_mc._y = -90;
  115.                selection_mc._y = 25;
  116.             };
  117.             zone3_btn.onRelease = function()
  118.             {
  119.                _global.JUKEBOX.playSound1("scroll20");
  120.                if(C < 3)
  121.                {
  122.                   return undefined;
  123.                }
  124.                SELECTED = 3;
  125.                icon_mc._y = -65;
  126.                selection_mc._y = 50;
  127.             };
  128.             zone4_btn.onRelease = function()
  129.             {
  130.                _global.JUKEBOX.playSound1("scroll20");
  131.                if(C < 4)
  132.                {
  133.                   return undefined;
  134.                }
  135.                SELECTED = 4;
  136.                icon_mc._y = -40;
  137.                selection_mc._y = 75;
  138.             };
  139.             zone5_btn.onRelease = function()
  140.             {
  141.                _global.JUKEBOX.playSound1("scroll20");
  142.                if(C < 5)
  143.                {
  144.                   return undefined;
  145.                }
  146.                SELECTED = 5;
  147.                icon_mc._y = -15;
  148.                selection_mc._y = 100;
  149.             };
  150.             ok_btn.onRelease = function()
  151.             {
  152.                _global.JUKEBOX.playSound1("scroll20");
  153.                _global.CGAMEIND = SELECTED - 1;
  154.                _global.CGAME = _global.GAMES[_global.CGAMEIND];
  155.                _parent.gotoPlay();
  156.             };
  157.             cancel_btn.onRelease = function()
  158.             {
  159.                _global.JUKEBOX.playSound1("scroll20");
  160.                _parent.gotoMenu();
  161.             };
  162.             break;
  163.          }
  164.          if(eval("\x01") == 385)
  165.          {
  166.             set("\x01",eval("\x01") + 363);
  167.             ┬º┬ºpush(true);
  168.          }
  169.          else if(eval("\x01") == 935)
  170.          {
  171.             set("\x01",eval("\x01") - 191);
  172.             ┬º┬ºpush(true);
  173.          }
  174.          else
  175.          {
  176.             if(eval("\x01") == 161)
  177.             {
  178.                set("\x01",eval("\x01") + 224);
  179.                break;
  180.             }
  181.             if(eval("\x01") == 744)
  182.             {
  183.                set("\x01",eval("\x01") - 638);
  184.                if(┬º┬ºpop())
  185.                {
  186.                   set("\x01",eval("\x01") - 44);
  187.                }
  188.             }
  189.             else
  190.             {
  191.                if(eval("\x01") != 573)
  192.                {
  193.                   if(eval("\x01") == 106)
  194.                   {
  195.                      set("\x01",eval("\x01") - 44);
  196.                      nextFrame();
  197.                      break;
  198.                   }
  199.                   break;
  200.                }
  201.                set("\x01",eval("\x01") - 412);
  202.                if(┬º┬ºpop())
  203.                {
  204.                   set("\x01",eval("\x01") + 224);
  205.                }
  206.             }
  207.          }
  208.       }
  209.    }
  210. }
  211.